//// Copyright 2013 Square, Inc.
//package org.assertj.ohos.api.view.accessibility;
//
//import ohos.accessibility.AccessibilityEventInfo;
//import static org.assertj.core.api.Assertions.assertThat;
//
///** Assertions for {@link AccessibilityEventInfo} instances. */
//public class AccessibilityEventAssert
//    extends AbstractAccessibilityRecordAssert<AccessibilityEventAssert, AccessibilityEventInfo> {
//  public AccessibilityEventAssert(AccessibilityEventInfo actual) {
//    super(actual, AccessibilityEventAssert.class);
//  }
//
//  public AccessibilityEventAssert hasAction(int action) {
//    isNotNull();
//    int actualAction = actual.getTriggerAction();
//    assertThat(actualAction) //
//        .overridingErrorMessage("Expected action <%s> but was <%s>.", action, actualAction) //
//        .isEqualTo(action);
//    return this;
//  }
///* // TODO: wang, not found in ohos
//  public AccessibilityEventAssert hasEventTime(long time) {
//    isNotNull();
//    long actualTime = actual.getEventTime();
//    assertThat(actualTime) //
//        .overridingErrorMessage("Expected event time <%s> but was <%s>.", time, actualTime) //
//        .isEqualTo(time);
//    return this;
//  }*/
//
//  public AccessibilityEventAssert hasEventType(int type) {
//    isNotNull();
//    int actualType = actual.getAccessibilityEventType();
//    assertThat(actualType) //
//        .overridingErrorMessage("Expected event type <%s> but was <%s>.", type, actualType) //
//        .isEqualTo(type);
//    return this;
//  }
//
//  public AccessibilityEventAssert hasMovementGranularity(int granularity) {
//    isNotNull();
//    int actualGranularity = actual.getTextMoveStep();
//    assertThat(actualGranularity) //
//        .overridingErrorMessage("Expected movement granularity <%s> but was <%s>.", granularity,
//            actualGranularity) //
//        .isEqualTo(granularity);
//    return this;
//  }
//
//  public AccessibilityEventAssert hasPackageName(CharSequence name) {
//    isNotNull();
//    CharSequence actualName = actual.getBundleName();
//    assertThat(actualName) //
//        .overridingErrorMessage("Expected package name <%s> but was <%s>.", name, actualName) //
//        .isEqualTo(name);
//    return this;
//  }
//}
